﻿using STMS.DAL;
using STMS.Models.DModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STMS.BLL
{
    public class DZPDBLL
    {
        private DZPDDAL dzpdDAL = new DZPDDAL();

        //条件查询电子皮带秤信息列表
        public List<HistorInfo> GetHistorInfos(string keywords, string Station)
        {
            return dzpdDAL.GetHistorInfos(keywords, Station);
        }
        public bool DeleteDZPDInfo(int RowId)
        {
            return dzpdDAL.Delete(RowId, 1, 2);
        }
        public HistorInfo GetInfo(int dzpdCheckId)
        {
            return dzpdDAL.GetInfo(dzpdCheckId);
        }
        /// <summary>
        /// 添加核查结果信息并返回编号
        /// </summary>
        /// <param name="dzpdInfoint"></param>
        /// <param name="Isreturn">0代表不返回</param>
        /// <returns></returns>
        public int AddDZPDInfos(HistorInfo dzpdInfo)
        {
            return dzpdDAL.AddDZPDInfos(dzpdInfo, 1);
        }
        /// <summary>
        /// 修改核查结果信息
        /// </summary>
        /// <param name="dzpdInfo"></param>
        /// <returns></returns>
        public bool UpdateDZPDInfos(HistorInfo dzpdInfo)
        {
            return dzpdDAL.UpdateDZPDInfos(dzpdInfo);
        }
    }

}
